package com.menu.Pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @ApiModelProperty(value = "用户id",hidden = true)
    private Integer userId;
    @ApiModelProperty(value = "账号",hidden = true)
    private String account;
    @JsonIgnore
    @ApiModelProperty(value = "密码",hidden = true)
    private String password;
    @ApiModelProperty(value = "用户等级,0是用户,1是管理员",hidden = true)
    private Integer grade = 0;
    @ApiModelProperty(value = "昵称")
    private String nickname = "未设置";
    @ApiModelProperty(value = "生日")
    private Date birthday;
    @ApiModelProperty(value = "真实姓名")
    private String realName = "未知";
    @ApiModelProperty(value = "性别 0男 1女 ")
    private Integer sex = 0;
    @ApiModelProperty(value = "邮箱",hidden = true)
    private String email;
    @ApiModelProperty(value = "地址")
    private String address = "未知";
    @ApiModelProperty(value = "喜好")
    private String like = "未知";
    @ApiModelProperty(value = "关注数量",hidden = true)
    private Integer attention = 0;
    @ApiModelProperty(value = "头像",hidden = true)
    private String headImg;
    @ApiModelProperty(value = "用户状态 0没事 1封禁",hidden = true)
    private Integer state = 0;
    @ApiModelProperty(value = "注册时间",hidden = true)
    private Date registerTime;
    @ApiModelProperty(value = "菜单数量",hidden = true)
    private Integer menuNum = 0;
    @ApiModelProperty(value = "粉丝数",hidden = true)
    private Integer fans = 0;
    private Integer menuFatherNum=0;
}
